/*
 * @Description:
 * @Author: wangqi
 * @Date: 2024-08-30 11:23:30
 * @LastEditTime: 2024-08-30 11:23:46
 * @LastEditAuthor: wangqi
 */
import { Entity, Column, PrimaryGeneratedColumn, ManyToMany } from 'typeorm';
import { User } from './User';

@Entity()
export class Roles {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  number: string;

  @ManyToMany(() => User, (user) => user.roles)
  user: User[];
}
